<?php

/**
 * @BelongProject: flami_mangers
 * @Author: Zwc
 * @CreateTime: 2025-11-01 18:50:17
 * @Description: TODO
 */

namespace App\Api;

use PhalApi\Api;

class Language extends Api
{
    public function getRules()
    {
        return [
            'getAll' => []
        ];
    }

    /**
     * 获取所有的语言
     * @return array
     */
    public function getAll()
    {
        $resData = [
            'code' => 0,
            'msg' => '获取数据成功',
            'info' => \App\Domain\Language::getAllLanguage()
        ];
        return $resData;
    }



}